<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>管理后台</title>

    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="css/admin.css" rel="stylesheet" type="text/css" />

  </head>
  
  <body>
    <div id="header"><img src="./admin/images/admin_top.gif" /></div>

<div id="main">
	<div id="opt_list">
    	<h1>管理员，您好！</h1>
    	<ul>
        	<li><a href="#">订单管理</a></li>
            <li><a href="#">用户管理</a></li>
            <li><a href="#">角色管理</a></li>
            <li><a href="#">图书分类管理</a></li>
            <li><a href="#">图书管理</a></li>
            <li><a href="#">销售统计</a></li>
            <li><a href="#">安全退出</a></li>
        </ul>
    </div>
    <div id="opt_area">
    	<iframe id="frame_content" name="frame_content" src="./admin/book_manage.jsp" width="100%" height="800" scrolling="no" frameborder="0"></iframe>
    </div>
</div>


<script type="text/javascript">
var $=function(id){ return document.getElementById(id);}

function reinitIframe(){
	var iframe = $("frame_content");
	try{
		var bHeight = iframe.contentWindow.document.body.scrollHeight;
		var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
		var height = Math.max(bHeight, dHeight);
		iframe.height =  height;
	}catch (err){ alert(err.description);}
}

window.setInterval("reinitIframe()", 200);
</script>

  </body>
</html>
